package com.mapper;

import com.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Milburn
 * @create 2021-03-01 17:33
 */
@Repository
public interface UserMapper {
    User findUserById(long user_id);

    Integer addUser(User user);

    Integer deleteUser(long user_id);

    Integer updateUser(User user);

    List<User> findAllUsers();

    List<User> findUsersByName(String name);

    List<User> findUsersLikeName(String name);
}
